import Home from './Home';
import Header from './components/Qheader';
import List from './components/List';
import { Route, Routes } from 'react-router-dom';

const AppRoutes = () => (
  <Routes>
    <Route path="/" element={<Home />}>
      <Route path="list" element={<Header />} />
    </Route>
    <Route path="list1" element={<List />} />
  </Routes>
);

export default AppRoutes;